package com.zr.serviceImpl;

import com.zr.dao.UserDaoHyx;
import com.zr.daoImpl.UserDaoImplHyx;
import com.zr.model.User;
import com.zr.service.UserServiceHyx;

public class UserServiceImplHyx implements UserServiceHyx{

	UserDaoHyx uDao =new UserDaoImplHyx();
	@Override
	public boolean updateTeacherPswByTid(int tid, String upsw) {
		
		return uDao.updateTeacherPswByTid(tid, upsw);
	}
	@Override
	public boolean addUserForNewStudent(String uname, String upsw, int rid) {
		// TODO Auto-generated method stub
		return uDao.addUserForNewStudent(uname, upsw, rid);
	}
	@Override
	public User findNewUserForStudent(String uname, String upsw) {
		// TODO Auto-generated method stub
		return uDao.findNewUserForStudent(uname, upsw);
	}
	@Override
	public boolean updateUserTidForNewStudent(int uid, int sid) {
		// TODO Auto-generated method stub
		return uDao.updateUserTidForNewStudent(uid, sid);
	}
	@Override
	public boolean deleteStudentUser(int sid) {
		// TODO Auto-generated method stub
		return uDao.deleteStudentUser(sid);
	}

}
